package com.lzq.SingletonPattern;
/*
饿汉式
 */
public class Singleton_EHan {
    //创建实例
    private static final Singleton_EHan INSTANCE = new Singleton_EHan();
    //私有空参构造函数，防止别人构建
    private Singleton_EHan() {
    }
    //获取实例方法，获取实例的唯一入口
    public static Singleton_EHan getInstance(){
        return INSTANCE;
    }
}
